#coding=utf-8

from PIL import Image
import os, glob
import sys



def batch_image(input, output):

    if not os.path.exists(input):
        print('file is not found')
    
    im = Image.open(input)
    
    im.save(output)
     
if __name__=='__main__':
    batch_image('/opt/openresty/nginx/html/ros/ros.pgm', '/opt/openresty/nginx/html/ros/ros.png')
